package com.ujiuye.controller;

import com.ujiuye.service.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    @Reference
    private DemoService demoService;


    @RequestMapping("demo2")
    public String demo1(){
        return demoService.get();
    }
}
